﻿<div id="botmenu">
    <div id="submenu">
        <ul>
            @foreach (iHouse.Web.Infrastructure.CategoryFormView category in ViewBag.Categories)
            {
                <li>@Html.ActionLink(category.TypeName, "HomeList", category.TypeName)
                    <ul>
                        @foreach (var item in category.Items)
                        {                            
                            <li>@Html.ActionLink(item.Name, category.Action, new System.Web.Routing.RouteValueDictionary(
                              new
                                {
                                    controller = category.TypeName,
                                    category = item.ID
                                }))</li>
                        }
                    </ul>
                </li>
            }
        </ul>
    </div>
</div>
